// -----------------------------------------------------------------------
//  <copyright file="WebApplicationBuilderExtensions.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-11-17 2:25</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Builder;
using DaprPlus.Extensions;


namespace DaprPlus.AspNetCore.Extensions;

public static class WebApplicationBuilderExtensions
{
    /// <summary>
    /// 从启动模块加载DaprPlus模块服务信息
    /// </summary>
    public static IDaprPlusBuilder AddDaprPlus<TStartupModule>(this WebApplicationBuilder builder)
        where TStartupModule : ModuleBase
    {
        return builder.Services.AddDaprPlus<TStartupModule>();
    }
}
